// 初始化仓库
export const initState = {
    detail:{}
}

export const reducer = (state, action) => {
    switch (action.type) {
        case "changeDeail":
            return {
                ...state,
                detail:action.obj
            }
        default:
            return state
    }
}

export const actions = {
    changeDetail:(obj)=>({type:"changeDeail",obj}),
}